import request from '@/utils/request'
const apiUrl = '/package'

export function getList(params) {
  return request({
    url: apiUrl,
    method: 'get',
    params
  }).then(res => {
    return res.data
  })
}

export function getInfo(id) {
  return request({
    url: apiUrl + '/' + id,
    method: 'get'
  }).then(res => {
    return res.data
  })
}

